package com.example.demo;

import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

import com.example.demo.util.CloseDefaultStyleUtil;

public class StartHomeActivity extends CloseDefaultStyleUtil {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_start_home);
        new android.os.Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
               // Intent mainIntent = new Intent(StartHomeActivity.this,MainActivity.class);
                Intent mainIntent = new Intent(StartHomeActivity.this,Login.class);
                StartHomeActivity.this.startActivity(mainIntent);
                StartHomeActivity.this.finish();

            }
        },3000); // 两秒后进入主页
    }
}